<div class="main_top">
    <div class="main_top_con">
        <div class="logo floatleft">
            <a href="{:url('@index')}">
                <img src="__PUBLIC__/static/index/images/logo.png" alt="" border="0"/>
                <span>{:sysconf('SITE_URL')}</span>
                <p>{:sysconf('SITE_NAME')}</p>
            </a>
        </div>
        <div class="top_link floatright">
            <a href='#' onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('{:sysconf(\'SITE_URL\')}');">设为首页</a> |
            <a href='#' onclick="window.external.AddFavorite('{:sysconf(\'SITE_URL\')}','{:sysconf(\'SITE_NAME\')}')">加为收藏</a> |
            <a href="{:url('@index/about')}">关于我们</a>
        </div>
        <div class="nav floatleft">
            <ul>
                <li><a href="{:url('@index')}" class="nav_a">首页</a></li>
                <!--{foreach $navs as $nav}-->
                <li><a href="{:url('@index'.$nav['url'])}" class="nav_a">{$nav.title}</a>
                    <!--{if !empty($nav['sub'])}-->
                    <ul class="nav_hover">
                        <!--{foreach $nav['sub'] as $sub}-->
                        <a href="{:url('@index'.$sub['url'])}">{$sub.title} </a>
                        <!--{/foreach}-->
                    </ul>
                    <!--{/if}-->
                </li>
                <!--{/foreach}-->
            </ul>
            <div class="clearfloat"></div>
        </div>
        <div class="clearfloat"></div>
    </div>
</div>